package com.cloudkinto.service.template;

import com.cloudkinto.entity.TrucksTemplateDo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.template.vo.TrucksTemplateAddReq;
import com.cloudkinto.service.template.vo.TrucksTemplateDetailRes;
import com.cloudkinto.service.template.vo.TrucksTemplatePageRes;
import com.cloudkinto.service.template.vo.TrucksTemplateUpdateReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  service接口
 * </p>
 * @author zhangyy
 * @since 2020-10-26
 */
public interface TrucksTemplateService extends IService<TrucksTemplateDo> {

    SingleResult addInit();

    void add(TrucksTemplateAddReq req, Long userId);

    SingleResult updateInit(Long id);

    TrucksTemplateUpdateReq update(TrucksTemplateUpdateReq updateVo, Long userId);

    int delete(Long id, Long userId);

    TrucksTemplateDetailRes detail(Long id);

    SingleResult pageInit();

    List<TrucksTemplatePageRes> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);
}
